inherited FPesquisaAcompanhamentoPedidoVenda: TFPesquisaAcompanhamentoPedidoVenda
  Left = 245
  Top = 108
  Caption = 'Pesquisa Acompanhamento Item Pedido Venda'
  ClientHeight = 380
  OldCreateOrder = True
  PixelsPerInch = 96
  TextHeight = 13
  inherited Panel2: TPanel
    inherited BtnLimpar: TBitBtn
      OnClick = BtnLimparClick
    end
    inherited BtnImprimir: TBitBtn
      OnClick = BtnImprimirClick
    end
  end
  inherited Panel1: TPanel
    Height = 339
    object Label2: TLabel [0]
      Left = 5
      Top = 39
      Width = 32
      Height = 13
      Caption = 'Cliente'
    end
    object Label9: TLabel [1]
      Left = 213
      Top = 3
      Width = 58
      Height = 13
      Caption = 'Data pedido'
    end
    object Label6: TLabel [2]
      Left = 304
      Top = 20
      Width = 6
      Height = 13
      Caption = 'a'
    end
    object Label10: TLabel [3]
      Left = 5
      Top = 197
      Width = 46
      Height = 13
      Caption = 'Empresas'
    end
    object Label1: TLabel [4]
      Left = 5
      Top = 3
      Width = 33
      Height = 13
      Caption = 'Pedido'
    end
    object Label3: TLabel [5]
      Left = 79
      Top = 20
      Width = 6
      Height = 13
      Caption = 'a'
    end
    object Label4: TLabel [6]
      Left = 5
      Top = 74
      Width = 37
      Height = 13
      Caption = 'Produto'
    end
    object Label5: TLabel [7]
      Left = 5
      Top = 109
      Width = 44
      Height = 13
      Caption = 'Processo'
    end
    object Label7: TLabel [8]
      Left = 5
      Top = 144
      Width = 98
      Height = 13
      Caption = 'Data Inicio Processo'
    end
    object Label8: TLabel [9]
      Left = 215
      Top = 144
      Width = 89
      Height = 13
      Caption = 'Data Fim Processo'
    end
    object Label11: TLabel [10]
      Left = 100
      Top = 161
      Width = 6
      Height = 13
      Caption = 'a'
    end
    object Label12: TLabel [11]
      Left = 306
      Top = 161
      Width = 6
      Height = 13
      Caption = 'a'
    end
    inherited DBGrid1: TDBGrid
      Top = 250
      Height = 68
      TabOrder = 11
      Columns = <
        item
          Expanded = False
          FieldName = 'ITENSPED_CODIGO'
          Title.Caption = 'Item Pedido'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'PED_DATA'
          Title.Caption = 'Data'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'CLI_RAZAO'
          Title.Caption = 'Cliente'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'PROD_DESCRICAOSAI'
          Title.Caption = 'N'#176' Pedido Cliente'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'PROC_DESCRICAO'
          Title.Caption = 'Vendedor'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'ACOMP_DATAINICIAL'
          Title.Caption = 'Produto'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'PROD_REFERENCIA'
          Title.Caption = 'Referencia'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'ACOMP_RESPONSAVEL'
          Title.Caption = 'Quantidade'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'ACOMP_OBS'
          Title.Caption = 'Quantidade Atendida'
          Visible = True
        end>
    end
    inherited Panel3: TPanel
      Top = 318
      TabOrder = 12
    end
    object DBLCBCliente: TDBLookupComboBox
      Left = 5
      Top = 53
      Width = 401
      Height = 21
      KeyField = 'CLI_CODIGO'
      ListField = 'CLI_RAZAO'
      ListSource = DSCliente
      TabOrder = 4
      OnKeyDown = DBLCBClienteKeyDown
    end
    object DEDataPedIni: TDateEdit
      Left = 213
      Top = 16
      Width = 92
      Height = 21
      NumGlyphs = 2
      TabOrder = 2
    end
    object DEDataPedFim: TDateEdit
      Left = 313
      Top = 15
      Width = 92
      Height = 21
      NumGlyphs = 2
      TabOrder = 3
    end
    object CkBTodasEmpresas: TCheckBox
      Left = 5
      Top = 181
      Width = 118
      Height = 17
      Caption = 'Todas as Empresas'
      TabOrder = 9
      OnClick = CkBTodasEmpresasClick
    end
    object CLBEmpresas: TCheckListBox
      Left = 1
      Top = 210
      Width = 409
      Height = 40
      Align = alBottom
      Columns = 1
      ItemHeight = 13
      TabOrder = 10
    end
    object EPedidoIni: TEdit
      Left = 5
      Top = 16
      Width = 73
      Height = 21
      TabOrder = 0
    end
    object EPedidoFim: TEdit
      Left = 89
      Top = 16
      Width = 73
      Height = 21
      TabOrder = 1
    end
    object DBLCBProduto: TDBLookupComboBox
      Left = 5
      Top = 88
      Width = 401
      Height = 21
      KeyField = 'PROD_CODIGO'
      ListField = 'PROD_DESCRICAOSAI'
      ListSource = DSProduto
      TabOrder = 5
      OnKeyDown = DBLCBClienteKeyDown
    end
    object DBLCBProcesso: TDBLookupComboBox
      Left = 5
      Top = 122
      Width = 401
      Height = 21
      KeyField = 'PROC_CODIGO'
      ListField = 'PROC_DESCRICAO'
      ListSource = DSProcesso
      TabOrder = 6
      OnKeyDown = DBLCBClienteKeyDown
    end
    object DEDataProcessoIni1: TDateEdit
      Left = 5
      Top = 157
      Width = 92
      Height = 21
      NumGlyphs = 2
      TabOrder = 7
    end
    object DEDataProcessoFim1: TDateEdit
      Left = 215
      Top = 157
      Width = 92
      Height = 21
      NumGlyphs = 2
      TabOrder = 8
    end
    object DEDataProcessoIni2: TDateEdit
      Left = 109
      Top = 157
      Width = 92
      Height = 21
      NumGlyphs = 2
      TabOrder = 13
    end
    object DEDataProcessoFim2: TDateEdit
      Left = 314
      Top = 157
      Width = 92
      Height = 21
      NumGlyphs = 2
      TabOrder = 14
    end
  end
  inherited QPesquisa: TQuery
    Active = True
    SQL.Strings = (
      
        'Select Ped_data,Cli_Razao,ItensPed_Pedido,ItensPed_Codigo,ITENSP' +
        'ED_DESCRICAOSERVICO,ItensPed_Quantidade,ITENSPED_QUANTIDADEATEND' +
        ',ITENSPED_DATAENTREGA,'
      
        'Proc_Codigo,Prod_DescricaoSai,Prod_Referencia,Prod_UnidSaida,PRO' +
        'D_TIPO,Proc_Codigo,Proc_Descricao,ACOMP_DATAINICIAL,ACOMP_DATAFI' +
        'NAL,ACOMP_RESPONSAVEL,ACOMP_OBS,(ACOMP_DATAFINAL - ACOMP_DATAINI' +
        'CIAL) as Dias'
      ''
      'from'
      
        'Cliente Inner join(PedidoVenda Inner Join(processo inner join(AC' +
        'OMPANHAMENTOITEMPEDIDOVENDA Inner join(ItensPedidoVenda Inner jo' +
        'in Produto on ItensPed_Produto = Prod_Codigo)'
      
        'on ACOMP_ITEMPEDIDO = ItensPed_Codigo) on Proc_Codigo = ACOMP_PR' +
        'OCESSO) on Ped_codigo = ItensPed_Pedido) on Cli_Codigo = Ped_Cli' +
        'ente'
      ''
      '   Where (CodigoEmpresa = 1)'
      ''
      'Order by'
      'ItensPed_Pedido,Ped_data,Cli_Razao')
    Left = 184
    Top = 297
  end
  inherited DSPesquisa: TDataSource
    Left = 216
    Top = 297
  end
  object DSCliente: TDataSource
    DataSet = DMGestao.QCliente
    Left = 128
    Top = 87
  end
  object DSProduto: TDataSource
    Left = 294
    Top = 88
  end
  object DSProcesso: TDataSource
    DataSet = DMGestao.QProcesso
    Left = 126
    Top = 120
  end
end
